<%= render :partial => 'left_bar', :locals => { :on => 1 } -%>

<div id="main">
  <%= render :partial => 'shared/menu_bar', :locals => { :new_entry_link => new_dictionary_path(:flag => @dictionary.flag) } -%>
  <%#= render :partial => 'form' -%>
  <% form_for @dictionary, :html => { :id => "form" } do |f| -%>
  <%= f.error_messages -%>
  
  <%= hidden_field_tag :flag, params[:flag] -%>
  <div class="box">
    <table class="table border">
      <tr class="th">
        <td width="80" align="right"><strong>词库</strong></td>
        <td><%= f.text_field :word, :style => "width:400px;" %></td>
      </tr>
      <tr class="tr2">
        <td width="80" align="right"><strong>权重</strong></td>
        <td><%= f.text_field :rank, :style => "width:400px;" %></td>
      </tr>
      <tr>
        <td width="80" align="right"><strong>类型</strong></td>
        <td><%= f.select :flag, Dictionary.flag_options, :style => "width:400px;" %></td>
      </tr>
    </table>
  </div>
<% end -%>
</div>
